﻿<div class="tss-category">
    <div class="title tsfl">
    </div>
    @foreach (DataRow dr in V5.Book.Query_By_List("*", "ParentId=0", "ClassCode Asc", 8).Rows) {
        <dl>
            <dt><a href="@V5.Html.Out(dr["Url"])">@dr["ClassTitle"]</a><s></s></dt>
            <dd>
                @{
        var loopNum = 1;
        foreach (DataRow dr1 in V5.Book.Query_By_List("*", "ParentId=" + dr["ClassId"], "ClassCode Asc", 9).Rows) {
                    <a href="@V5.Html.Out(dr1["Url"])">@dr1["ClassTitle"]</a>    
            if (loopNum % 3 == 0) {
                    @(V5.Html.Out("</dd><dd>"))
            }
            loopNum++;
        }
                }
            </dd>
        </dl>
    }
    <dl>
        <dt class="all"><a href="@V5.Url.Action("book/categories", null)" target="_blank">全部图书分类
            »</a><s></s></dt>
    </dl>
</div>
